package com.iss.wyy.helper;

import com.iss.wyy.common.ConfigConstant;
import com.iss.wyy.util.ClassUtil;
import com.iss.wyy.util.PropertiesUtil;

import java.util.Properties;

public class PropertiesHelper {
    //获取用户配置文件的Properties
    private static Properties properties = PropertiesUtil.loadProperties(ConfigConstant.CONFIG_FILE);
    //获取配置项basePackage的值
    public static String getBasePackage(){
        return PropertiesUtil.getString(properties,ConfigConstant.BASE_PACKAGE_KEY);
    }
    //获取jsp路径
    public static String getAppJspPath(){
        return PropertiesUtil.getString(properties,ConfigConstant.APP_JSP_PATH,"/views/");
    }
    //获取静态资源路径
    public static String getAppAssetPath(){
        return PropertiesUtil.getString(properties,ConfigConstant.APP_ASSET_PATH,"/asset/");
    }
}
